<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" errorPage="hello.jsp" %>
<%@ taglib uri="/struts-tags" prefix="s" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">
	<title>试卷页</title>
</head>
<body>
<jsp:include page="title.jsp" /><br/>
	<font color="red"><s:actionerror/></font>
	<font color="red"><s:actionmessage /></font>

<div align="center" >
 <h3>课程号：<s:property value="#request.courseInfo.courseID" /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 课程名：<s:property value="#request.courseInfo.courseName" /></h3> <br/>
 <s:form action="registedStudents">
 <input type="hidden" name="courseID" value="<s:property value="#request.courseInfo.courseID" />" >
 <input type="submit" class="btns" value="学生管理" >
 </s:form> <br/><br/><br/>
 
 <h3>待发布试卷：</h3><br/>
	<table>
	<s:iterator value="#request.exam0" >
   	  <tr>
   		<td>	
   		<s:form action="getInExam.action">
   			<input type="hidden" name="examID" value="<s:property value="examID" />">
   			<input type="submit" class="btns" value="<s:property value="name" />">
   		</s:form> 
   		</td>
   		
   		<td>
   		<s:form action="deleteExamA.action">
   			<input type="hidden" name="examID" value="<s:property value="examID" />">
   			<input type="submit" class="btns" value="删除">
   		</s:form> 
   		</td>
   		<td>
   		<s:form action="fabu.action">
   			<input type="hidden" name="examID" value="<s:property value="examID" />">
   			<input type="submit" class="btns" value="发布考试">
   		</s:form> 
   		</td>
   	  </tr>
   	</s:iterator>
   	</table>
   	<br/>
   	<s:form action="addExamA">
   	<input type="hidden" name="courseID" value="<s:property value="#request.courseInfo.courseID" />" >
   	<input type="submit" class="btns" value="增加试卷"/>
   	</s:form>
 <br/>
   	
 <br/>
<h3>需批阅试卷：</h3> <br/>
 <table>
	<s:iterator value="#request.exam2" >
   	  <tr>
   		<td>	
   		<s:form action="shenyueA.action">
   			<input type="hidden" name="examID" value="<s:property value="examID" />">
   			<input type="hidden" name="courseID" value="<s:property value="#request.courseInfo.courseID" />" >
   			<input type="submit" class="btns" value="<s:property value="name" />">
   		</s:form> 
   		</td>
   	  </tr>
   	</s:iterator>
   	</table>
   	<br/>
 
 <br/>
 <h3> 已完成批阅试卷：</h3><br/>
 <table>
	<s:iterator value="#request.exam3" >
   	  <tr>
   		<td>	
   		<s:form action="okExamA.action">
   			<input type="hidden" name="examID" value="<s:property value="examID" />">
   			<input type="hidden" name="courseID" value="<s:property value="#request.courseInfo.courseID" />" >
   			<input type="submit" class="btns" value="<s:property value="name" />">
   		</s:form> 
   		</td>
   	  </tr>
   	</s:iterator>
   	</table>
   	<br/>
 </div>  	
   	
</body>
</html>